export default {
    "style": {
        "width": "auto"
    },
    "formItemLayout": {
        "labelCol": {
            "span": 6
        },
        "wrapperCol": {
            "span": 18
        }
    },
    "formItem": [
        {
            "type": "input",
            "label": "受保护进程",
            "key": "process",
            "value": "",
            "props": {
                "placeholder": "请输入要保护的进程名"
            },
            "rules": [
                {
                    "required": true,
                    "message": "进程名称不能为空"
                }
            ]
        },
        {
            "type": "inputNumber",
            "label": "进程端口",
            "key": "port",
            "value": 0,
            "props": {
                "min": 0,
                "max": 65535,
                "placeholder": "请输入进程端口号"
            },
            "rules": [
                {
                    "required": true,
                    "message": "端口号必须在0-65535之间"
                }
            ]
        },
        {
            "type": "select",
            "label": "协议类型",
            "key": "protocol",
            "value": 0,
            "props": {
                "type": "text",
                "placeholder": "请选择协议类型"
            },
            "options": [
                {
                    "value": 0,
                    "label": "所有"
                },
                {
                    "value": 6,
                    "label": "TCP协议"
                },
                {
                    "value": 17,
                    "label": "UDP协议"
                }
            ]
        }
    ]
}
